package cn.lanyi.feign;

import cn.lanyi.domain.Store;
import cn.lanyi.fallback.StoreServiceFallbackFactory;
import cn.lanyi.utils.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "store-service",path = "store",contextId = "storeService", fallbackFactory = StoreServiceFallbackFactory.class)
public interface StoreService {

    @PostMapping("add")
    AjaxResult add(@RequestBody Store store);
}
